package cn.sxt.yxl.controller.head;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.sxt.yxl.common.util.ConstaFinalUtil;
import cn.sxt.yxl.common.util.PageInfoUtil;
import cn.sxt.yxl.user.pojo.AAdmins;
import cn.sxt.yxl.user.service.IUserService;

@Controller
public class NoLoginController {
	@Resource
	private IUserService userService;
	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest request){
		ConstaFinalUtil.LOGGER.info("---- adminsList -----");
		Map<String, Object> condMap = new HashMap<String,Object>();
		PageInfoUtil pageInfoUtil=new PageInfoUtil();
		List<AAdmins> adminsList = this.userService.findCondListAdminService(pageInfoUtil, condMap);
		request.setAttribute("adminsList", adminsList);
		return "/head/adminsList" ; 
	}
}
